#ifndef EXTCONTROL_H
#define EXTCONTROL_H

#include <QObject>
#include <QDebug>
#include "board.h"
#include "gpiocontrol.h"

class ExtControl : public QObject
{
  Q_OBJECT
public:
  explicit ExtControl(QObject *parent = 0);
  ~ExtControl();
  void initGPIO();

  /* LED control */
  void setLED1On();
  void setLED1Off();
  void setLED2On();
  void setLED2Off();
  void setLED3On();
  void setLED3Off();
  void setLED4On();
  void setLED4Off();
  void setLED5On();
  void setLED5Off();

  //Enable external I2C communication
  void setExtI2COn();
  void setExtI2COff();

  //Enable external power
  void setExtPowerOn();
  void setExtPowerOff();
signals:

public slots:
    void blinkTimerTimeout();
};

#endif // EXTCONTROL_H
